import axios from '../plugins/axios'

export const menu = {
    // 分页查询菜单
    queryPage: data => axios.post('system' + '/sysMenu/queryPage', data).then(res => res).catch(err => err),
    // 添加菜单
    addMenu: data => axios.post('system' + '/sysMenu/add', data).then(res => res).catch(err => err),
    // 查询tree菜单
    queryMenuTree: data => axios.post('system' + '/sysMenu/queryMenuTree', data).then(res => res).catch(err => err),
    // 删除菜单
    deleteMenu: data => axios.get('system' + '/sysMenu/delete/'+ data).then(res => res).catch(err => err)
  
  }
  